# logic/history_data.py

history = []

def update_history(entry):
    history.insert(0, entry)
    if len(history) > 10:
        history.pop()

def clear_history():
    history.clear()

